package project;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import project.Components.AiWebSocketServer;

@SpringBootApplication
@MapperScan(basePackages = "project.Mapper")
public class SpringbootApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringbootApplication.class, args);
        AiWebSocketServer.setApplicationContext(applicationContext);

    }
}
